/usr/bin/wget --timeout=5 -O /dev/null -q http://127.0.0.1:8008/ping.fpm
if [ $? -ne 0 ]; then
(
        /etc/init.d/php-fpm restart;
        /etc/init.d/lighttpd restart;
)
fi
